
class MqttMessageLocation {
  String messageType;
  String sendId;
  String targetId;
  String sendTimeStamp;
  Map<String, dynamic> content;

  MqttMessageLocation(
      {this.content,
      this.sendId,
      this.targetId,
      this.messageType,
      this.sendTimeStamp});

  MqttMessageLocation.fromJson(Map<String, dynamic> json) {
    content = json['content'];
    messageType = json['messageType'];
    sendId = json['sendId'];
    targetId = json['targetId'];
    sendTimeStamp = json['sendTimeStamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['content'] = this.content;
    data['messageType'] = this.messageType;
    data['sendId'] = this.sendId;
    data['targetId'] = this.targetId;
    data['sendTimeStamp'] = this.sendTimeStamp;
    return data;
  }
}
